<%
//用户
var user = shiro.getUser();
var title  = '食药局申请';
layout("/inc/layout.html",{
title:title,
keywords:title,
description:title,
style:'user.css'
}){
%>
<section class="container">
<div class="row mt15">
    <div class="row">
        <div class="panel panel-info">
            			<div class="panel-heading text-left">
				<ul class="nav nav-tabs">
					<li class="active"><a href="/fooddrugApply/base"><b>食品经营许可证办理</b></a></li>
					<li><a href="/fooddrugChange/index"><b>食品经营许可证变更</b></a></li>
					<li><a href="/fooddrugCancel/base"><b>食品经营许可证注销</b></a></li>
				</ul>
			</div>
            <div class="panel-body">
                <!--项目状态-->
  <legend><span class="text text-danger" id="messageCode">食品经营许可证申请</span></legend>
                <form class="form-horizontal col-sm-offset-1 col-sm-9" id="saveLicenseForm" method="post" action="/fooddrugApply/saveLicense">
				  <input type="hidden" name="id" id="id" value="${id!}">
                  <input type="hidden" name="applyId" id="applyId" value="${applyId!}">
					<div class="form-group">
						<label  class="col-sm-2 control-label">经营场所：</label>
						<div class="col-sm-10">
							<input type="text" class="form-control" id="premises" name="premises" value="${premises!}" placeholder="经营场所" required="required"> 
								<b class="text text-danger"id="premises-error"></b>
						</div>
					</div>
					<div class="form-group">
						<label  class="col-sm-2 control-label">经营面积：</label>
						<div class="col-sm-10">
						<div class="input-group">
							<input type="text" class="form-control" id="businessArea" name="businessArea" value="${businessArea!}" placeholder="经营面积" required="required"> 
							<span class="input-group-addon">平方米</span>
						</div>
						<b class="text text-danger"	id="businessArea-error"></b>
						</div>
					</div>
					
                   <div class="form-group">
                        <label class="col-sm-2 control-label">经济性质：</label>
                        <div class="col-sm-10" id="distpicker">
                            <select class="form-control" name="businessNature" id="businessNature">
                            <option value="1" ${businessNature==1?"selected"}>企业</option>
                            <option value="2" ${businessNature==2?"selected"}>个体工商户</option>
                            <option value="3" ${businessNature==3?"selected"}>农村合作社</option>
                            <option value="4" ${businessNature==4?"selected"}>其他</option>
                            </select>
                             <b class="text text-danger" id="businessNature-error"></b>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">主体业态：</label>
                        <div class="col-sm-10" id="distpicker">
                            <select class="form-control" name="subjectFormats" id="subjectFormats">
                            <option value="1" ${subjectFormats==1?"selected"}>食品销售经营者</option>
                            <option value="2" ${subjectFormats==2?"selected"}>餐饮服务经营者</option>
                            <option value="3" ${subjectFormats==3?"selected"}>单位食堂</option>
                            </select>
                             <b class="text text-danger" id="subjectFormats-error"></b>
                        </div>
                    </div>
                     <div class="form-group">
                        <label class="col-sm-2 control-label">经营类别：</label>
                        <div class="col-sm-10" id="distpicker">
                            <select class="form-control" name="businessCategory" id="businessCategory">
									<option value="1" parentid="1" ${businessCategory==null?"selected"} ${businessCategory==1?"selected"}>大型食品零售经营者(食品销售面积≧2000m²)</option>
									<option value="2" parentid="1" ${businessCategory==2?"selected"}>中型食品零售经营者(食品销售面积≧100m²)</option>
									<option value="3" parentid="1" ${businessCategory==3?"selected"}>小型食品零售经营者(食品销售面积100m²)</option>
									<option value="4" parentid="1" ${businessCategory==4?"selected"}>食品批发经营者</option>
									<option value="5" parentid="1" ${businessCategory==5?"selected"}>食品自动售货销售者</option>
									<option value="6" parentid="1" ${businessCategory==6?"selected"}>互联网食品销售者</option>
									<option value="7" parentid="2" ${businessCategory==7?"selected"}>特大型餐馆(加工场所使用面积3000m²)</option>
									<option value="8" parentid="2" ${businessCategory==8?"selected"}>大型餐馆(加工经营面积500-3000m²，不包含500m²，含3000m²)</option>
									<option value="9" parentid="2" ${businessCategory==9?"selected"}>中型餐馆(加工经营面积150-500m²，不包含150m²，含500m²)</option>
									<option value="10" parentid="2" ${businessCategory==10?"selected"}>小型餐馆(加工经营面积60-150m²，不包含60m²，含150m²)</option>
									<option value="11" parentid="2" ${businessCategory==11?"selected"}>小餐饮单位(加工经营面积60m²以下)</option>
									<option value="12" parentid="2" ${businessCategory==12?"selected"}>中央厨房</option>
									<option value="13" parentid="2" ${businessCategory==13?"selected"}>集体用餐配送单位</option>
									<option value="14" parentid="3" ${businessCategory==14?"selected"}>学校食堂</option>
									<option value="15" parentid="3" ${businessCategory==15?"selected"}>幼托机构食堂</option>
									<option value="16" parentid="3" ${businessCategory==16?"selected"}>机关企事业单位食堂</option>
									<option value="17" parentid="3" ${businessCategory==17?"selected"}>工地食堂</option>
									<option value="18" parentid="3" ${businessCategory==18?"selected"}>其他食堂</option>
								</select>
                             <b class="text text-danger" id="businessCategory-error"></b>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label">备注：</label>
                        <div class="col-sm-10">
                        <p>1.是否包含网络经营：
                            <input type="radio" value="1" name="networkSales" id="networkSales1" ${networkSales==1? "checked"}/>是
                            <input type="radio" value="0" name="networkSales" id="networkSales0" ${networkSales==0? "checked"}/>否
                        <p>2.是否同时具有实体门店经营：
                            <input type="radio" value="1" name="storeSales" id="storeSales1" ${storeSales==1? "checked"}/>是
                            <input type="radio" value="0" name="storeSales" id="storeSales0" ${storeSales==0? "checked"}/>否
                        <p>3.如主体业态为单位食堂，是否为职业学校，普通中学，小学，特殊职业学校，托幼机构：
                            <input type="radio" value="1" name="schoolCanteen" id="schoolCanteen1"  ${schoolCanteen==1? "checked"}/>是
                            <input type="radio" value="0" name="schoolCanteen" id="schoolCanteen0"  ${schoolCanteen==0? "checked"}/>否
                        </div>
                    </div>
                     <div class="form-group">
                        <label class="col-sm-2 control-label">经营项目：</label>
                        <div class="col-sm-10">
                            <p><input type="checkbox" value="1" name="businessProject" id="businessProject1"  ${@businessProject.contains("1")? "checked"} /><B>预包装食品销售</B>
                            <p><input type="checkbox" value="1.1" name="businessProject" id="businessProject1.1" ${@businessProject.contains("1.1")? "checked"} />预包装食品(不含冷藏食品)销售
                               <input type="checkbox" value="1.2" name="businessProject" id="businessProject1.2" ${@businessProject.contains("1.2")? "checked"} />预包装食品(不含冷藏冷冻食品)销售
                            <p> <input type="checkbox" value="2" name="businessProject" id="businessProject2" ${@businessProject.contains("2")? "checked"} /><B>散装食品销售</B>
                            <p> <input type="checkbox" value="2.1" name="businessProject" id="businessProject2.1" ${@businessProject.contains("2.1")? "checked"} />散装食品(含冷藏食品)销售
                            <input type="checkbox" value="2.2" name="businessProject" id="businessProject2.2" ${@businessProject.contains("2.2")? "checked"} />散装食品(不含冷藏冷冻食品)销售
                            <p><input type="checkbox" value="3" name="businessProject" id="businessProject3" ${@businessProject.contains("3")? "checked"} /><B>特殊食品销售</B>
                            <p><input type="checkbox" value="3.1" name="businessProject" id="businessProject3.1" ${@businessProject.contains("3.1")? "checked"} />保健食品销售
                            <input type="checkbox" value="3.2" name="businessProject" id="businessProject3.2" ${@businessProject.contains("3.2")? "checked"} />特殊医学用途配方食品销售
                            <input type="checkbox" value="3.3" name="businessProject" id="businessProject3.3" ${@businessProject.contains("3.3")? "checked"} />婴幼儿配方食品销售
                            <input type="checkbox" value="3.4" name="businessProject" id="businessProject3.4" ${@businessProject.contains("3.4")? "checked"} />其他婴幼儿配方食品销售
                            <p><input type="checkbox" value="4" name="businessProject" id="businessProject4" ${@businessProject.contains("4")? "checked"} /><B>其他类食品销售</B>
                            <p><input type="checkbox" value="5" name="businessProject" id="businessProject5" ${@businessProject.contains("5")? "checked"} /><B>热食类食品制售</B>
                            <p><input type="checkbox" value="6" name="businessProject" id="businessProject6" ${@businessProject.contains("6")? "checked"} /><B>冷食类食品制售</B>
                            <p><input type="checkbox" value="7" name="businessProject" id="businessProject7" ${@businessProject.contains("7")? "checked"} /><B>生食类食品制售</B>
                            <p><input type="checkbox" value="8" name="businessProject" id="businessProject8" ${@businessProject.contains("8")? "checked"} /><B>糕点类食品制售</B>
                            <p><input type="checkbox" value="9" name="businessProject" id="businessProject9" ${@businessProject.contains("9")? "checked"} /><B>自制饮品类制售</B>
                            <p><input type="checkbox" value="10" name="businessProject" id="businessProject10" ${@businessProject.contains("10")? "checked"} /><B>其他类食品制售</B>
                        <p><b class="text text-danger" id="businessProject-error"></b>
                        </div>
                    </div>
                    
                     
                    <div class="form-group">
                        <label class="col-sm-2 control-label">备注：</label>
                        <div class="col-sm-10">
                        <p>1.如申请散装食品销售，是否含散装熟食销售 ：
                            <input type="radio" value="1" name="cookedFood" id="cookedFood1" ${cookedFood==1? "checked"}/>是
                            <input type="radio" value="0" name="cookedFood" id="cookedFood0" ${cookedFood==0? "checked"}/>否
                        <p>2.如申请自制饮料制售，是否含自制酒：
                            <input type="radio" value="1" name="bomemadeWine" id="bomemadeWine1" ${bomemadeWine==1? "checked"}/>是
                            <input type="radio" value="0" name="bomemadeWine" id="bomemadeWine0" ${bomemadeWine==0? "checked"}/>否
                        <p>3.如申请糕点类食品制售，是否含裱花蛋：
                            <input type="radio" value="1" name="decoratingCake" id="decoratingCake1" ${decoratingCake==1? "checked"}/>是
                            <input type="radio" value="0" name="decoratingCake" id="decoratingCake0" ${decoratingCake==0? "checked"}/>否
                        <p>4.如申请自制饮品制售，是否含现制现售生鲜乳 ：
                            <input type="radio" value="1" name="freshMilk" id="freshMilk1" ${freshMilk==1? "checked"}/>是
                            <input type="radio" value="0" name="freshMilk" id="freshMilk0" ${freshMilk==0? "checked"}>否
                        </div>
                    </div>
				</form>
            </div>
             <div class="panel-footer">
                <div class="col-sm-offset-3 clearfix">
                    <div class="mt5 mb5 block col-sm-3">
                        <a href="/fooddrugApply/legal?applyId=${applyId!}" class="btn btn-warning btn-lg btn-outline btn-block">上一步</a>
                    </div>
                    <div class="mt5 mb5 block col-sm-3">
                        <button type="button" id="submitLicense" class="btn btn-danger btn-lg btn-outline btn-block">下一步</button>
                    </div>
                </div>
            </div>
        </div>
</div>
    </section>
<% } %>
<script>
    require(['modules/fooddrug_license'], function (fooddrugLicense) {
    	fooddrugLicense.info();
    });
    
</script>
</body>
</html>